<?php

namespace common\models\mongo;

use Yii;

/**
 * This is the model class for collection "scache".
 *
 * @property \MongoDB\BSON\ObjectID|string $_id
 * @property mixed $id
 * @property mixed $channel_id
 * @property mixed $competition
 * @property mixed $stages
 * @property mixed $teams
 * @property mixed $matches
 * @property mixed $table
 * @property mixed $updated_at
 */
class Season extends \common\db\MongoActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function collectionName() {
        return 'season';
    }

    /**
     * {@inheritdoc}
     */
    public function attributes() {
        return [
            '_id',
            'id',
            'channel_id',
            'competition',
            'stages',
            'teams',
            'matches',
            'table',
            'created_at',
            'updated_at',
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['id', 'channel_id', 'competition', 'stages', 'teams', 'matches', 'table', 'created_at', 'updated_at'], 'safe']
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            '_id' => 'ID',
            'id' => 'Id',
            'channel_id' => 'Channel ID',
            'competition' => 'Competition',
            'stages' => 'Stages',
            'teams' => 'Teams',
            'matches' => 'Matches',
            'table' => 'Table',
            'updated_at' => 'Updated At',
        ];
    }

}
